﻿/// <reference path="Turbo_common.js" />

var $FileUploadProgress = TA.Turbo.Controls.FileUploadProgress = function FileUploadProgress()
{
}
$FileUploadProgress.Inherit(BaseJsonDeserializable);

$FileUploadProgress.prototype.TotalSize = 0;
$FileUploadProgress.prototype.TotalUploaded = 0;
$FileUploadProgress.prototype.FileSize = 0;
$FileUploadProgress.prototype.FileUploaded = 0;
$FileUploadProgress.prototype.TotalStartDT = new Date();
$FileUploadProgress.prototype.FileStartDT = new Date();
$FileUploadProgress.prototype.FileName = "";

$FileUploadProgress.prototype.DeserializeContent = function DeserializeContent(prShortName, value)
{
	switch (prShortName)
	{
		case "A": this.TotalSize = value; break;
		case "B": this.TotalUploaded = value; break;
		case "C": this.FileSize = value; break;
		case "D": this.FileUploaded = value; break;
		case "E": this.TotalStartDT = value; break;
		case "F": this.FileStartDT = value; break;
		case "N": this.FileName = value; break;
	}
}

